package com.haixiaoke.flat.system.controller;

import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.system.domain.SysArea;
import com.haixiaoke.saas.system.service.impl.SysAreaServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author qixi
 * @date 2023/10/23
 */
@RestController
@RequestMapping("/front/area")
public class FrontSysAreaController {

    @Autowired
    private SysAreaServiceImpl sysAreaService;

    @GetMapping("/list")
    public AjaxResult getArea(SysArea sysArea) {
        List<SysArea> sysAreas = sysAreaService.list(sysArea);
        return AjaxResult.success(sysAreas);
    }


}
